package com.zp.drug.api.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;


/**
 * 库房单位与科室对照业务对象
 *
 * @author zhang peng
 * @ date 2023-06-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class StorageVsDeptBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 科室id
     */
//    @NotBlank(message = "科室id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String deptId;

    /**
     * 库房单位id
     */
    @NotBlank(message = "库房单位id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String storageId;

    /**
     * 机构id
     */
    @NotBlank(message = "机构id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;

    /**
     * 科室id集合
     */
    private String[] deptIds;

}
